﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="attribute_field_list.aspx.cs" Inherits="MxWeiXinPF.Web.admin.channel.attribute_field_list" %>

<%@ Import Namespace="MxWeiXinPF.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />


    <title>扩展属性列表</title>
   
<%=PageJSAndStype("list").ToString() %>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="javascript:history.back(-1);" class="back"><i class="iconfont icon-up"></i><span>返回上一页</span></a>
            <a href="../center.aspx" class="home"><i class="iconfont icon-home"></i><span>首页</span></a>
          <i class="arrow iconfont icon-arrow-right"></i>
            <span>字段列表</span>
        </div>
        <!--/导航栏-->

        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <a class="menu-btn"></a>
                    <div class="l-list">
                        <ul class="icon-list">
                            <li><a class="add" href="attribute_field_edit.aspx?action=<%=MXEnums.ActionEnum.Add %>"><i  class="iconfont icon-close"></i><span>新增</span></a></li>
                            <li>
                                <asp:LinkButton ID="btnSave" runat="server" CssClass="save" OnClick="btnSave_Click"><i  class="iconfont icon-save"></i><span>保存</span></asp:LinkButton></li>
                            <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i  class="iconfont icon-check"></i><span>全选</span></a></li>
                            <li>
                                <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete');" OnClick="btnDelete_Click"><i class="iconfont icon-delete"></i><span>删除</span></asp:LinkButton></li>
                        </ul>
                        <div class="menu-list">
                            <div class="rule-single-select">
                                <asp:DropDownList ID="ddlControlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlControlType_SelectedIndexChanged">
                                    <asp:ListItem Value="">所有类型</asp:ListItem>
                                    <asp:ListItem Value="single-text">单行文本</asp:ListItem>
                                    <asp:ListItem Value="multi-text">多行文本</asp:ListItem>
                                    <asp:ListItem Value="editor">编辑器</asp:ListItem>
                                    <asp:ListItem Value="images">图片上传</asp:ListItem>
                                    <asp:ListItem Value="number">数字</asp:ListItem>
                                    <asp:ListItem Value="datetime">时间日期</asp:ListItem>
                                    <asp:ListItem Value="checkbox">复选框</asp:ListItem>
                                    <asp:ListItem Value="multi-radio">多项单选</asp:ListItem>
                                    <asp:ListItem Value="multi-checkbox">多项多选</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="r-list">
                        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click"><i class="iconfont icon-search"></i></asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>

        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th width="6%">选择</th>
                        <th align="left">列名</th>
                        <th align="left" width="16%">标题</th>
                        <th align="left" width="12%">类型</th>
                        <th align="left" width="12%">是否必填</th>
                        <th align="left" width="12%">排序</th>
                        <th align="left" width="110">系统默认</th>
                        <th width="10%">操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Enabled='<%#bool.Parse((Convert.ToInt32(Eval("is_sys"))==0 ).ToString())%>' Style="vertical-align: middle;" />
                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                    </td>
                    <td><%#Eval("name")%></td>
                    <td><%#Eval("title")%></td>
                    <td><%#GetTypeCn(Eval("control_type").ToString())%></td>
                    <td><%#Convert.ToInt32(Eval("is_required")) == 1 ? "是" : "否"%></td>
                    <td>
                        <asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="sort" onkeydown="return checkNumber(event);" /></td>
                    <td><%#Convert.ToInt32(Eval("is_sys")) == 1 ? "是" : "否"%></td>
                    <td align="center"><a href="attribute_field_edit.aspx?action=<%#MXEnums.ActionEnum.Edit %>&id=<%#Eval("id")%>">修改</a></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"8\">暂无记录</td></tr>" : ""%>
</table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>

            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>
